<div id="cms">
	<table class="table">
		<tr>
			<th width="70">Anrede</th>
			<th width="22%">Name</th>
			<th width="">Strasse</th>
			<th width="">PLZ Ort</th>
			<th width="30%">Gruppenmitgliedschaft(en)</th>
			<th width="120">Zusatz-Info</th>
			<th width="70">Bearbeiten</th>
		</tr>
		
	{foreach from=$SubjectManager_Subjects item=i name=fe}
	{if $i->canRead()}
	<tr{if $smarty.get.markid==$i->pkSubject || $smarty.foreach.fe.first || $smarty.foreach.fe.last} class="{if $smarty.get.markid==$i->pkSubject}marked{/if}{if $smarty.foreach.fe.first} first{/if}{if $smarty.foreach.fe.last} last{/if}"{/if}>
			<td>{$i->fkSalutation}</td>
			<td><a href="{$Sys_CurrentPageURL}&amp;method=editSubject&pkSubject={$i->pkSubject}">{$i->firstName}{if $i->middleName} {$i->middleName}{/if} {$i->lastName}<a></td>
			<td>{$i->street}</td>
			<td>{$i->plz} {$i->city}</td>
			<td>
	{foreach from=$i->SubjectGroups item=g name=groups}
				<a href="{$Sys_CurrentPageURL}&method=edit&grps={$g->pkSubjectGroup}">{$g->title}</a>{if !$smarty.foreach.groups.last}, {/if}
	{/foreach}
			</td>
			<td>
				{html_linkbutton icon="favourites.png" text="Member-Daten bearbeiten" link="$Sys_CurrentPageURL&amp;method=editMember&pkSubject=" addlink=$i->pkSubject type="icon" size="20" enabled=$i->isSubjectMember()}
			</td>
			<td>
				{html_linkbutton icon="write.png" text="Bearbeiten" link="$Sys_CurrentPageURL&amp;method=editSubject&pkSubject=" addlink=$i->pkSubject type="icon" size="20" enabled=$i->canUpdate()}
				{html_linkbutton icon="delete.png" text="L&ouml;schen" link="$Sys_CurrentPageURL&amp;method=deleteSubject&pkSubject=" addlink=$i->pkSubject type="icon" size="20" enabled=$i->canDelete()}
			</td>
		</tr>		
	{/if}
	{/foreach}
	</table>
</div>